﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FrasesSimpsonsMvc.Models;

namespace FrasesSimpsonsMvc.Controllers
{
    public class BaseController : Controller
    {

        public static string GlobalIdentifier = "a98bbd17a0f0e416cb795e4e60856caf4";

        public FrasesSimpsonsEntities Context { get; private set; }

        public BaseController()
        {
            this.Context = new FrasesSimpsonsEntities();
        }

        protected override void  OnActionExecuted(ActionExecutedContext filterContext)
        {
 	        base.OnActionExecuted(filterContext);

            this.Context.Dispose();
        }

    }
}
